<template>
  <div id='app'>
    <button @click="add">点击查看加载·</button>
  

  </div>
</template>

<script>
export default {
  data () {
    return {
      list: [],
    }
  },
  methods: {
   
    add(){

      var cp=0
      cp++

     let dndex =this.$index({
        title:'加载中.......',
       
      })

      if(cp>=1){
setTimeout(function(){
             console.log(1);
            dndex.show=false
          },2000)
      }
      

    }

  },
  mounted() {

  },
  components: {

  }
}
</script>

<style lang='scss'>

</style>
